package com.zm.dubbo.demo.provider;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * @author zoum
 * @create 2019/4/28 17:10
 */

@PropertySource(value = "classpath:application.properties")
@EnableDubbo(scanBasePackages = "com.zm.dubbo.demo.provider")
public class Application {

    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(Application.class);
        context.refresh();
        System.out.println("DemoService provider is starting...");
        System.in.read();
    }
}
